
package ija.model.players;

import ija.model.types.Color;
import ija.model.types.Direction;

/**
 *
 * @author Radek Necas, xnecas18
 */
public class RemotePlayer extends Player {
    
    public static enum ConnectType {
        INITIATOR, LISTENER
    }
    
    String ip;
    int port;
    ConnectType type;
    
    public RemotePlayer(String name, Color color, Direction direction, ConnectType connectType, String ipAddress, int port) {
        super(name, color, direction);
        this.ip = ipAddress;
        this.port = port;
        type = connectType;
    }
    
    public void setIp(String ip) {
        this.ip = ip;
    }
    
    public void setPort(int port) {
        this.port = port;
    }
    
    public void setConnectType(ConnectType t) {
        type = t;
    }
    
    public String getIp() {
        return ip;
    }
    
    public int getPort() {
        return port;
    }
    
    public ConnectType getConnectType() {
        return type;
    }
    
}
